//
//  AppController.h
//  YaTc
//
//  Created by Roberto on 17/02/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@class TwitterManagement;


@interface AppController : NSObject {
	IBOutlet NSTableColumn *column;
	NSArray *twitterStatuses;
	IBOutlet NSTableView *tableView;
	IBOutlet NSProgressIndicator *loading;
	IBOutlet NSWindow *postNewTweetWindow;
	TwitterManagement *twitterManagement;
	NSString *twitterUser;
	NSString *twitterPassword;
	IBOutlet NSTextField *lastUpdateLbl;
	IBOutlet NSTextField *userLoggedInLbl;
	
	IBOutlet NSTextField *tweetTF;
	IBOutlet NSButton *sendBtn;
	IBOutlet NSTextField *charsLeftLbl;
	
	IBOutlet NSTextField *userTF;
	IBOutlet NSTextField *passTF;
	IBOutlet NSTextField *loginErrorLbl;
	
	IBOutlet NSBox *mainBox;
	IBOutlet NSView *loginView;
	IBOutlet NSView *tweetsView;
	
}
- (void) refreshTweetsTable;

- (IBAction) refreshButtonPressed: (id) sender;
- (IBAction) postNewTweetPressed: (id) sender;
- (IBAction) replyTweetPressed: (id) sender;

- (IBAction) sendTweet: (id) sender;
- (IBAction) cancelTweet: (id) sender;

- (IBAction) loginButtonPressed: (id) sender;

- (void) enableLoading;
- (void) disableLoading;
@end
